LOG_DIR="/data/detect/logs"
mkdir -p "$LOG_DIR"

LOG_FILE="$LOG_DIR/transfer_$(date +%Y%m%d).log"

/home/monster/miniconda3/envs/rknn/bin/python main.py --global_conf /data/detect/conf/global/conf.yaml \
 --local_conf /data/detect/conf/transfer/conf.yaml \
 --log_file "$LOG_FILE" &
#   >> "$LOG_FILE" 2>&1

> "$LOG_DIR/tpid.log"
echo $! >> "$LOG_DIR/tpid.log"